Skip to content

Conversation

@Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented Oct 10, 2024

Stand

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
134 134 0 0 0

Bundle Size: 🔺

Current: 78.97 MB | Main: 78.96 MB
Diff: +0.01 MB (0.01%)

⚠️ Bundle size increased. Please review.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

version: version,
color: versionsToColor?.get(getMinorVersion(version)),
value: (versionsCount[version] / nodes.length) * 100,
value: value < MIN_VALUE ? MIN_VALUE : value,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why MIN_VALUE is 0.5 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was kinda a shot in the dark. It looks nice - not wide, but sufficient to hove a mouse.

];

export const GREY_COLOR = '#bfbfbf';
export const DEFAULT_COLOR = '#008000'; // green
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed with @adameat and decided to set green color as defaut.

@Raubzeug Raubzeug requested a review from astandrik October 15, 2024 10:44
import type {VersionToColorMap} from '../../types/versions';
import {parseNodeGroupsToVersionsValues, parseNodesToVersionsValues} from '../../utils/versions';

export const useGetVersionValues = (cluster?: TClusterInfo, versionToColor?: VersionToColorMap) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you reuse the same hook from /containers/Cluster/ClusterInfo/utils.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cause very soon it will be removed from /containers/Cluster/ClusterInfo/utils.ts. Currently in #1473 .

}
});
const result = [...data];
result[maximumIndex] = {...data[maximumIndex], value: maximum + 100 - total};
Copy link
Member

@artemmufazalov artemmufazalov Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need such normalization? If my most common version is 24-3 and I have 1000 nodes out of 1300 with such version, its value will be -200 (converted to 0.5)? So most common version will have least space on the bar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in pm, I've added a comment, for what this normalization is needed.

@Raubzeug Raubzeug added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit 6cc07d5 Oct 17, 2024
6 checks passed
@Raubzeug Raubzeug deleted the ydb-add-overall-versions branch October 17, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants